package com.midele.goodstuff.data.repository.net_util

import com.midele.goodstuff.data.model.TouristUserBean
import com.midele.goodstuff.data.model.UserInfoBean
import okhttp3.RequestBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {

    @POST("user-base/register")
    suspend fun register(@Body requestBody: RequestBody): Response<ApiResponse<TouristUserBean>>

    @GET("user-base/sendValidateCode")
    suspend fun sendValidateCode(@Query("phone") phone: String): Response<ApiResponse<Any>>

    @POST("user-base/login")
    suspend fun login(@Body requestBody: RequestBody): Response<ApiResponse<UserInfoBean>>

    @POST("user-base/logOut")
    suspend fun logOut(): Response<ApiResponse<Any>>

    @POST("user-base/invalidUserBase")
    suspend fun invalidUserBase(@Query("userId") userId: Int): Response<ApiResponse<Any>>

    @POST("user-base/loadUserBaseInfo")
    suspend fun loadUserBaseInfo(): Response<ApiResponse<UserInfoBean>>


}